package com.song.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author tonysong
 * @since 2024-04-29
 */
@TableName("book_category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 出版社编号
     */
    @TableId(value = "cid", type = IdType.AUTO)
    private Integer cid;

    /**
     * 出版社名称
     */
    private String categoryName;

    /**
     * 出版社地址
     */
    private String address;

    /**
     * 创建时间
     */
    private LocalDateTime cretaeTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 出版社是否可用
     */
    private Integer enabled;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public LocalDateTime getCretaeTime() {
        return cretaeTime;
    }

    public void setCretaeTime(LocalDateTime cretaeTime) {
        this.cretaeTime = cretaeTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return "Category{" +
            "cid = " + cid +
            ", categoryName = " + categoryName +
            ", address = " + address +
            ", cretaeTime = " + cretaeTime +
            ", updateTime = " + updateTime +
            ", enabled = " + enabled +
        "}";
    }
}
